From: Richard M. Stallman Date: Sat, 8 May 1993 16:17:01 +0000 (+0000) Subject: (vc-directory-18): cd to the directory in question before the file tree walk. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96368 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0ee7d6239af171b5bd689a7aff15dafcea9a938c;p=emacs.git (vc-directory-18): cd to the directory in question before the file tree walk. --- diff --git a/lisp/vc.el b/lisp/vc.el index 9bc5dabaa38..6a0742b8de5 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -897,10 +897,11 @@ on a buffer attached to the file named in the current Dired buffer line." (defun vc-directory-18 (verbose) "Show version-control status of all files under the current directory." (interactive "P") - (let (nonempty) + (let (nonempty (dir default-directory)) (save-excursion (set-buffer (get-buffer-create "*vc-status*")) (erase-buffer) + (cd dir) (vc-file-tree-walk (function (lambda (f) (if (vc-registered f)